<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

  <head>

    <title>MapSnap</title>

    <style type="text/css">
        body
        {
            padding: 0px;
            margin: 0px;
        }
    </style> 

    <script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=mapsnap0" type="text/javascript"></script>

    <script type="text/javascript">

        var map;

        function init()
        {
            //var adobeSF = new YGeoPoint(37.771763, -122.401784);
            map = new YMap(document.getElementById('map'));
           // map.addTypeControl();
           // map.addPanControl();
           // map.addZoomLong();
           // map.addZoomShort();
            map.drawZoomAndCenter('601 Townsend St. San Francisco, CA 94103', 5);
        }

        function lookupAddress(address)
        {
            map.drawZoomAndCenter(address, 5);
        }
        
        function showAccount(address,Name) {
        	map.removeMarkersAll();
        	map.drawZoomAndCenter(address, 8);
        	var tMarker = new YMarker(address, Name);
        	map.addOverlay(tMarker); 
        	tMarker.addAutoExpand("<b>"+Name+"</b>");
        	tMarker.openAutoExpand();
        }

        window.onload = init;

    </script>

  </head>

  <body>
    <div id="map" style="width:300px;height:300px"></div>
  </body>

</html>
